<?php
class SFC_Controller
{
		public function __construct()
		{
				$this->display = new SFC_Display();
		}

		public function checkSession($layout='index')
		{
				if (isset($_SESSION['in'])) {
						return 1;
				} else {
						header("Location: " . URL . "/$layout");
				}
		}

		public function checkData($layout='index')
		{
				if (isset($_POST)) {
						return 1;
				} else {
						$this->display->show($layout);
				}
		}
}
?>
